import request from "@/utils/request";
export function supplierList(data) {
  return request({
    url: "/api/Supplier/getSupplierList",
    method: "post",
    data
  });
}
export function addSupplier(data) {
  return request({
    url: "/api/Supplier/addSupplier",
    method: "post",
    data
  });
}
export function delSupplier(data) {
  return request({
    url: "/api/Supplier/delSupplier",
    method: "post",
    data
  });
}
export function editSupplier(data) {
  return request({
    url: "/api/Supplier/editSupplier",
    method: "post",
    data
  });
}
export function changeStates(data) {
  return request({
    url: "/api/Supplier/changeStates",
    method: "post",
    data
  });
}
export function synSupplier(data) {
  return request({
    url: "/api/Supplier/synSupplier",
    method: "post",
    data
  });
}
export function getGoodsDetails(data) {
  return request({
    url: "/api/Invoice/getGoodsDetails",
    method: "post",
    data
  });
}
export function bindGoods(data) {
  return request({
    url: "/api/Supplier/bindGoods",
    method: "post",
    data
  });
}
export function getSupplierInfo(data) {
  return request({
    url: "/api/Supplier/getSupplierInfo",
    method: "post",
    data
  });
}
export function addInvoice(data) {
  return request({
    url: "/api/Invoice/addInvoice",
    method: "post",
    data
  });
}
export function getInvoiceList(data) {
  return request({
    url: "/api/Invoice/getInvoiceList",
    method: "post",
    data
  });
}
export function getSupplierGoods(data) {
  return request({
    url: "/api/Supplier/getSupplierGoods",
    method: "post",
    data
  });
}
export function getInvoiceDetail(data) {
  return request({
    url: "/api/Invoice/getInvoiceDetail",
    method: "post",
    data
  });
}
export function getStatements(data) {
  return request({
    url: "/api/Invoice/getStatements",
    method: "post",
    data
  });
}
export function selectSupplierList(data) {
  return request({
    url: "/smkapi/supplier/selectSupplierList",
    method: "post",
    data
  });
}
export function addSuppliers(data) {
  return request({
    url: "/smkapi/supplier/addSupplier",
    method: "post",
    data
  });
}
export function editSuppliers(data) {
  return request({
    url: "/smkapi/supplier/editSupplier",
    method: "post",
    data
  });
}
export function delSuppliers(data) {
  return request({
    url: "/smkapi/supplier/delSupplier",
    method: "post",
    data
  });
}
export function findSuppliers(data) {
  return request({
    url: "/smkapi/supplier/findSupplier",
    method: "post",
    data
  });
}
export function conditionSupplier(data) {
  return request({
    url: "/smkapi/supplier/conditionSupplier",
    method: "post",
    data
  });
}
//获取供应商绑定商品列表
export function getBindGoods(data) {
  return request({
    url: "/smkapi/Supplier/getBindGoods",
    method: "post",
    data
  });
}
//用友编码修改
export function setyyCode(data) {
  return request({
    url: "/api/Supplier/setyyCode",
    method: "post",
    data
  });
}
//商超供应商绑定商品
export function bindGood(data) {
  return request({
    url: "/smkapi/Supplier/bindGoods",
    method: "post",
    data
  });
}
//商超供应商绑定商品
export function delBindGoods(data) {
  return request({
    url: "/smkapi/Supplier/delBindGoods",
    method: "post",
    data
  });
}
//商超供应商新整区域编码
export function getRegionData(data) {
  return request({
    url: "/smkapi/region/getRegionData",
    method: "post",
    data
  });
}
//商超供应商搜索
export function selectSupplierData(data) {
  return request({
    url: "/smkapi/Supplier/selectSupplierData",
    method: "post",
    data
  });
}
//设置返点比
export function setReb(data) {
  return request({
    url: "/api/supplier/setReb",
    method: "post",
    data
  });
}
//获取修改银行信息的银行列表
export function selectBank(data) {
  return request({
    url: "/api/Select/selectBank",
    method: "post",
    data
  });
}
//修改供应商银行卡信息
export function updateBanckData(data) {
  return request({
    url: "/api/Supplier/updateBanckData",
    method: "post",
    data
  });
}
//获取修改银行信息的银行所在省份
export function selectBankProvince(data) {
  return request({
    url: "/api/Select/selectBankProvince",
    method: "post",
    data
  });
}

//必付
export function setMustPay(data) {
  return request({
    url: "/api/supplier/setMustPay",
    method: "post",
    data
  });
}
//改变结算单初始冻结状态
export function changeStatmentInitFreezeStatus(data) {
  return request({
    url: "/api/supplier/changeStatmentInitFreezeStatus",
    method: "post",
    data
  });
}
